export const catchError = async (ctx: any, next: () => {}) => {
  try {
  next()
  } catch (err) { 
    console.log(err);
    ctx.body = {
      status: false,
      msg: '系统错误,请重试',
      error: err,
    }
    // return
  }
}
